import * as constant from './constant'
import { fromJS } from 'immutable'
const defaultState = fromJS({
    boardList: []
})
export default((state=defaultState,action) => {
  switch(action.type){
     case constant.GET_BOARD_LIST:
      return state.merge({
        boardList: fromJS(action.boardList)
      })
    default:
     return state;
  }
})